package cn.unknownerror.ueteam.event;

import cn.unknownerror.ueteam.team.ITeam;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class TeamCallEvent extends Event implements Cancellable {
    private ITeam team;
    private static final HandlerList handlers = new HandlerList();
    private boolean cancelled;

    public TeamCallEvent(ITeam _team){
        team=_team;
        cancelled=false;
    }

    public ITeam getTeam() {
        return team;
    }

    @Override
    public HandlerList getHandlers() {
        return handlers;
    }
    public static HandlerList getHandlerList(){
        return handlers;
    }

    @Override
    public boolean isCancelled() {
        return cancelled;
    }

    @Override
    public void setCancelled(boolean b) {
        cancelled=b;
    }
}
